package com.hamizhong.iflowers.web.action.admin;

import net.sf.json.JSONObject;

import com.hamizhong.iflowers.utils.MyConstants;
import com.hamizhong.iflowers.web.base.MyBaseAjaxAction;

public class AjaxDoLogoutADMAction extends MyBaseAjaxAction {

	@Override
	protected JSONObject doRequest() {
		logger.info("----------------- Hello AjaxDoLogoutADMAction -----------------");
		JSONObject jo = new JSONObject();
		if(getSSN().getAttribute(MyConstants.IFLOWERS_LOGIN_ADMIN_VO) != null) {
			getSSN().removeAttribute(MyConstants.IFLOWERS_LOGIN_ADMIN_VO);
		}
		jo.put("result", MyConstants.AJAX_SUCCESS);
		return jo;
	}

}
